package com.example.medical_delivery_system.dao;


import com.example.medical_delivery_system.entity.Product;
import com.example.medical_delivery_system.entity.User;
import com.example.medical_delivery_system.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Param：20201003013
 * Author：李镇荣
 * Data：2022/12/21
 */
public interface AdminUserMapper {

    int deleteByPrimaryKey(Long userId);

    int insert(User record);

    int insertSelective(User  record);

    User selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> findUserList(PageQueryUtil pageUtil);

    int getTotalUsers(PageQueryUtil pageUtil);

    int deleteBatch(Long[] ids);

    List<Product> findUsersByNum(@Param("number") int number);

}